// pages/contribute/uploadfile/index.js
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    h5UploadUrl:''
  },
  onLoad: function (options) {
    let that = this;
    that.setData({
      h5UploadUrl:options.url
    });
  },
   //接收h5返回的数据
   postMessage(e) {
    app.globalData.uploadFileObj = e.detail.data[0];
  }
})